package com.example.mq.annotation;

import org.springframework.stereotype.Service;

import java.lang.annotation.*;

@Service
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface MQListener {

    //队列名称
    String queue() default "";

    //交换机名称
    String exchange() default "";

    //路由key
    String routingKey() default "";

    //是不是主题类型消息
    boolean isTopic() default false;
}
